<script setup>
import { isDesktop } from '@/utils/device.js'
import { formatToThousands } from '@/utils/formate.js'

import { computed } from 'vue'
const totalAmount = computed(() => 0)
</script>

<template>
  <div class="footer shadow-4" v-if="isDesktop">
    <q-input label="摘要" stack-label v-model="text" :dense="dense" />
    <div style="display: flex; align-items: center">
      <div style="margin: 0 20px">
        报销金额 :
        <span class="price" style="color: #f5892a">￥{{ formatToThousands(totalAmount) }}</span>
      </div>
      <div style="width: 1px; height: 22px; border: 1px solid #eeeeee"></div>
      <div style="margin: 0 20px; display: flex; flex-direction: column">
        <div class="label">
          行程金额 : <span class="price">￥{{ formatToThousands(totalAmount) }}</span>
        </div>
        <div class="label">
          补贴金额 : <span class="price">￥{{ formatToThousands(totalAmount) }}</span>
        </div>
      </div>
      <div class="btn">按钮</div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.input-css {
  width: 221px;
  height: 31px;
  background: #ffffff;
  border-radius: 5px;
  border: 1px solid #eeeeee;
  margin-left: 10px;
}
:deep(.el-input__wrapper) {
  border: none !important;
  box-shadow: none !important;
}
.footer {
  width: 100%;
  height: 60px;
  background: #ffffff;
  // box-shadow: 0 0 12px 0 #E0E0E0;
  z-index: 999;
  margin-top: 20px;
  margin-bottom: 10px;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 42px;
  padding-right: 8px;

  .label {
    font-weight: 500;
    font-size: 12px;
    color: #3c3c44;
    .price {
      font-weight: bold;
      font-size: 14px;
      color: #f5892a;
    }
  }
}

.mobileFooter {
  display: flex;
  justify-content: space-between;
  width: 100%;
  .fb {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}
.price {
  font-size: 20px;
  color: #4080ff;
}
.btn {
  width: 260px;
  height: 42px;

  border-radius: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;

  .save {
    background: #e3ecff;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4080ff;
    justify-content: end;
  }
  .icon {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    img {
      height: 210%;
      width: 100%;
    }
  }
  .submit {
    background: #4080ff;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ffffff;
    justify-content: start;
  }
}
</style>
